<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    request.setCharacterEncoding("UTF-8");
    String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%
    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    String date = format.format(new Date());
%>
<%@ include file="/WEB-INF/JSP/backHome/modalWindows/StudentsListPage.jsp" %>
<%@ include file="/WEB-INF/JSP/backHome/modalWindows/argeeCommon.jsp" %>
<%@ include file="/WEB-INF/JSP/backHome/modalWindows/againstAuditCommon.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="<%=path%>/JS/tempJs/tool.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=path%>/CSS/bombBox.css">
    <link rel="stylesheet" type="text/css" href="<%=path%>/CSS/backLayout.css">
</head>
<style>
    select {
        width: 234px;
        height: 31px
    }

    .gn_name {
        padding-top: 5px
    }

    .div_zilei {
        width: 600px;
        height: 30px
    }

    .tr {
        height: 40px;
        background: #a9bbe0
    }

    .tr td {
        font-size: 14px;
        color: #333;
        font-weight: 700;
        height: 40px;
    }

    .tr_td td {
        border-bottom: 1px solid #ededed;
        text-align: center;
    }

    tr td:nth-child(1) {
        font-size: 14px;
        color: #cccccc
    }

    .date {
        border: 0;
        background: #ffffff;
        text-align: center;
    }

    .tr_td td:nth-child(1) {
        border-left: 1px solid #cccccc;
    }

    .tr_td td:nth-child(3) {
        border-right: 1px solid #cccccc;
    }

    .deleteTable:HOVER {
        cursor: pointer;
    }

    .addTable:HOVER {
        cursor: pointer;
    }

    input {
        height: 31px
    }

    .div_input_hang {
        width: 92%;
        height: 40px;
    }

    .input_hang {
        width: 33%;
        height: 40px
    }

    .input_hang input {
        width: 165px
    }

    .gn_name {
        width: 92px
    }

    .modal-data1 tr {
        height: 35px;
    }

    .line tr th {
        border: 1px solid #000;
        border-top: none;
        border-left: none;
    }

    .line tr th:nth-child(5) {
        border-right: none;
    }

    .line tr td {
        border: 1px solid #000;
    }

    .line tr td:nth-child(5) {
        border-right: none;
    }

    .line tr td:nth-child(1) {
        border-left: none;
    }

    /*.table table tr td {
        line-height: 30px;
    }*/

    .table table tr th {
        line-height: 30px;
    }

    #line2 tr td {
        line-height: 25px;
    }

    #content_id table tr td {
        height: 35px;
        font-size: 16px;
        color: #000;
    }

    #content_id {
        width: 1700px;
        display: none;
    }

    .tabletool tr td {
        height: 30px;
        text-align: center;
    }

</style>
<body style="background: #f5f5f5">
<div class="main">
    <div class="weizhi">
        学员管理>>退学申请>>详情
    </div>
    <div class="table" id="content_id" style="text-align: center">
        <p align="center" style="font-size: 25px;font-weight: bolder">南昌机动车驾驶员培训中心</p>
        <p align="center" style="font-size: 26px;font-weight: bolder">退学申请表</p>
        <table class="tabletool" border="1px" style="border-collapse: collapse;" align="center" width="80%">
            <tr>
                <th>学员姓名</th>
                <th>证件种类</th>
                <th>证件号码</th>
                <th colspan="2">实收金额</th>
                <th>退学原因</th>
                <th>推荐人</th>
                <th>报名日期</th>
            </tr>
            <tr>
                <td rowspan="2">${exitClazz.studentName}</td>
                <td rowspan="2">身份证</td>
                <td rowspan="2">${exitClazz.cfidcardno}</td>
                <th>培训费</th>
                <th>规费</th>
                <td rowspan="2">${exitClazz.fdescription}</td>
                <td rowspan="2">${exitClazz.cftjr}</td>
                <td rowspan="2">${exitClazz.cfbmsj}</td>
            </tr>
            <tr>
                <td>${exitClazz.cfpxf}</td>
                <td>${exitClazz.cfgf}</td>
            </tr>
            <tr>
                <th rowspan="2">学习详细情况</th>
                <th>规费</th>
                <th>科目一</th>
                <th>科目二</th>
                <th>科目三</th>
                <th>杂项</th>
                <th>培训计时卡</th>
                <th>约排考系统</th>
            </tr>
            <tr>
                <td><c:if test="${exitClazz.cfbillstate eq 3}">
                    <c:if test="${exitClazz.cfguifei eq 0}">
                    </c:if>
                    <c:if test="${exitClazz.cfguifei eq 1}">
                        已付
                    </c:if>
                    <c:if test="${exitClazz.cfguifei eq 2}">
                        未付
                    </c:if>
                    <c:if test="${exitClazz.cfguifei eq 3}">
                        已抵规费
                    </c:if>
                </c:if>
                    <c:if test="${exitClazz.cfbillstate ne 3}">
                        <c:if test="${exitClazz.cfguifei eq 0}">
                        </c:if>
                        <c:if test="${exitClazz.cfguifei eq 1}">
                            已付
                        </c:if>
                        <c:if test="${exitClazz.cfguifei eq 2}">
                            未付
                        </c:if>
                        <c:if test="${exitClazz.cfguifei eq 3}">
                            已抵规费
                        </c:if>
                    </c:if></td>
                <%--<c:if test="${exitClazz.cfbillstate eq 3}">--%>
                <td>
                    <c:if test="${exitClazz.cfkmy eq 0}">
                    </c:if>
                    <c:if test="${exitClazz.cfkmy eq 1}">
                        及格
                    </c:if>
                    <c:if test="${exitClazz.cfkmy eq 2}">
                        未考
                    </c:if>
                    <c:if test="${exitClazz.cfkmy eq 3}">
                        不及格
                    </c:if>
                    <c:if test="${exitClazz.cfkmy eq 4}">
                        未到
                    </c:if>
                </td>
                <td>
                    <c:if test="${exitClazz.cfkme eq 0}">
                    </c:if>
                    <c:if test="${exitClazz.cfkme eq 1}">
                        及格
                    </c:if>
                    <c:if test="${exitClazz.cfkme eq 2}">
                        未考
                    </c:if>
                    <c:if test="${exitClazz.cfkme eq 3}">
                        不及格
                    </c:if>
                    <c:if test="${exitClazz.cfkme eq 4}">
                        未到
                    </c:if>
                </td>
                <td></td>
                <td></td>
                <td>
                    <c:if test="${exitClazz.cfjsk eq 0}">
                    </c:if>
                    <c:if test="${exitClazz.cfjsk eq 1}">
                        已发放
                    </c:if>
                    <c:if test="${exitClazz.cfjsk eq 2}">
                        未发放
                    </c:if>
                </td>
                <td>
                    <c:if test="${exitClazz.cfypkxt eq 0}">
                    </c:if>
                    <c:if test="${exitClazz.cfypkxt eq 1}">
                        已录
                    </c:if>
                    <c:if test="${exitClazz.cfypkxt eq 2}">
                        未录
                    </c:if>
                </td>
                <%-- </c:if>--%>
            </tr>
        </table>
        <div style="width:80%;margin: 0 10%;">
            <div style="width: 55%; min-height: 420px; border-left: 1px solid #000;float: left">
                <table class="line" width="100%"
                       style="border-collapse: collapse;text-align: center;float: left"
                >
                    <tr>
                        <th>审批节点</th>
                        <th>审批人</th>
                        <th>审批意见</th>
                        <th width="20%">审批结果</th>
                        <th>审批时间</th>
                    </tr>
                    <c:forEach items="${activities}" var="a" varStatus="status">
                        <tr>
                            <td>${a.Name}</td>
                            <td>${a.User}</td>
                            <td>${a.FullMessage2}</td>
                            <td>${a.FullMessage}</td>
                            <td>${a.Time}</td>
                        </tr>
                    </c:forEach>
                </table>
            </div>
            <div style="width: 44.7%; min-height: 420px; border-left: 1px solid #000;border-right: 1px solid #000;float: left">
                <table id="line2" width="88%"
                       style="margin-left: 20px;border-collapse: collapse;text-align: left"
                       align="center">
                    <tr>
                        <td width="20%">扣款项目</td>
                        <td align="center" width="40%"></td>
                        <td align="center" width="20%"></td>

                    </tr>
                    <c:forEach items="${exitClazzEntries}" var="exitClazzEntry" varStatus="status">
                        <tr>
                            <td>${requestScope.offset+status.index+1}</td>
                            <td style="text-align: left">${exitClazzEntry.cfkkxmName}></td>
                            <td>${exitClazzEntry.cfamount}</td>
                        </tr>
                    </c:forEach>
                    <tr>
                        <td colspan="2">合计共扣： &nbsp; &nbsp; &nbsp; &nbsp;${exitClazz.cfhjgk}元 &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;应退：
                        </td>
                        <td align="center">${exitClazz.cfyt}元</td>
                    </tr>
                </table>
            </div>
        </div>
        <table border="1px" style="border-collapse: collapse;text-align: center" align="center" width="80%">
            <tr>
                <td colspan="8" align="left">
                    <p>收款方式：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.现金&nbsp; □ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.转账&nbsp;
                        □</p>
                </td>
            </tr>
            <tr>
                <td colspan="8" align="left">
                    <span style="margin-left: 20px; width: 400px; display: inline-block">今收到南昌驾校退（学）费款：&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 20px;font-weight: bolder" id="amountInWords"></span></span>
                    <span style="margin-left: 100px; width: 250px; display: inline-block">收款人：</span>
                    <span style="margin-left: 100px; width: 330px; display: inline-block">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</span>
                </td>
            </tr>
            <tr>
                <td colspan="8" align="left">
                    <span style="margin-left: 20px; width: 240px; display: inline-block">转入银行：</span>
                    <span style="margin-left: 40px; width: 150px; display: inline-block">户名：</span>
                    <span style="margin-left: 40px; width:250px; display: inline-block">账号：</span>
                    <span style="margin-left: 40px; width: 150px; display: inline-block">申请人：</span>
                    <span style="margin-left: 40px; width: 150px; display: inline-block">委托代办人：</span>
                </td>
            </tr>
        </table>

        <table class="table9" style="text-align: left" align="center" width="80%">
            <tr>
                <td colspan="2">
                    <p>责任免除声明：本人自愿与培训机构解除培训关系，并同意退回由培训机构审核确定的培训费及规费（如规费已转付南昌市车管车辆管理所，由本人自行前往南昌市车辆管理所办理退规费手续）。
                    </p>
                </td>
            </tr>
            <tr align="center">
                <td>申请人：</td>
                <td>委托代办人：</td>
            </tr>
            <tr align="center">
                <td> 年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
                <td> 年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
            </tr>
            <tr align="center">
                <td>客服签字：</td>
                <td>财务签字：</td>
            </tr>
        </table>
    </div>

    <div class="modal-data1">
        <div style="height: 60px">
            <ul>
                <li style="text-align: left;margin-left: 60px;height: 40px;line-height: 40px">
                    <span>名称：</span>
                    <span>
				  		 	<input class="name1" type="text">
				  		</span>
                    <span>
				  			<button class="findBtn" id="findBtn">
				  				查询
				  			</button>
				  		</span>
                </li>
            </ul>
        </div>
        <div style="width:100%;height:350px;overflow:scroll;">
            <form action="">
                <table class="head1" style="width: auto;white-space:nowrap;border-spacing: 0px">
                    <tr style="background: #f2f2f2;height: 30px;line-height: 20px;" class="sel">
                        <td style="width: 20px"></td>
                        <td>
                            名称
                        </td>
                        <td>
                            编码
                        </td>
                        <td>
                            简称
                        </td>
                        <td>
                            描述
                        </td>
                        <td>
                            创建时间
                        </td>
                        <td>
                            用户名
                        </td>
                        <td>
                            最后修改时间
                        </td>
                        <td>
                            用户名
                        </td>
                        <td>
                            财务组织
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <button class="subtn1" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;left: 20%">
            确定
        </button>
        <button class="btn" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;right: 20%">
            关闭
        </button>
    </div>
    <div class="div_body" style="min-height: 900px">


        <div class="div_form">
            <!--新增  -->
            <c:if test="${flag eq 1 }">
                <form action="<%=path%>/DrivingSys/saveExitClazz" class="form">
                    <div class="jlxx">
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">驾校&nbsp;:&nbsp;</span>
                                <input type="text" value="${department.fnameL2}" disabled="disabled" name="cfbirthday">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">单据编号&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">业务日期&nbsp;:&nbsp;</span>
                                <input type="text" id="cfbirthday" value="<%=date%>" name="fbizdate"
                                       onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})">
                                <img onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})"
                                     src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">班级&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" class="cfclazz">
                                <input type="hidden" class="cfclazz" name="cfclazz">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">单据状态&nbsp;:&nbsp;</span>
                                <select disabled="disabled" style="width: 165px">
                                    <option>新增
                                    </option>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">学员姓名&nbsp;:&nbsp;</span>
                                <input type="text" class="student" name="studentName">
                                <input type="hidden" id="student" name="cfstudentid">
                                <span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">身份证号码&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" class="cfidcardno">
                                <input type="hidden" class="cfidcardno" name="cfidcardno">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">应收金额&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" name="cfyinshou" class="cfyinshou">
                                <input type="hidden" class="cfyinshou" name="cfyinshou">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">推荐人&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" class="cftjr">
                                <input type="hidden" class="cftjr" name="cftjr">
                                <input type="hidden" class="deptId" name="deptName">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">报名时间&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" name="cfbmsj" class="cfbmsj">
                                <input type="hidden" name="cfbmsj" class="cfbmsj">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">规费状态&nbsp;:&nbsp;</span>
                                <select name="cfguifei" style="width: 165px">
                                    <option value="0"></option>
                                    <option value="1">已付</option>
                                    <option value="2">未付</option>
                                    <option value="3">已抵规费</option>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">已收金额&nbsp;:&nbsp;</span>
                                <input type="text" class="cfyishou" disabled="disabled">
                                <input type="hidden" class="cfyishou" name="cfyishou">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">科目一&nbsp;:&nbsp;</span>
                                <select name="cfkmy" id="cfkmy" style="width: 165px">
                                    <option value="0"></option>
                                    <option value="1">及格</option>
                                    <option value="2">未考</option>
                                    <option value="3">不及格</option>
                                    <option value="4">未到</option>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">科目二&nbsp;:&nbsp;</span>
                                <select name="cfkme" id="cfkme" style="width: 165px">
                                    <option value="0"></option>
                                    <option value="1">及格</option>
                                    <option value="2">未考</option>
                                    <option value="3">不及格</option>
                                    <option value="4">未到</option>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">计时卡&nbsp;:&nbsp;</span>
                                <select name="cfjsk" id="cfjsk" style="width: 165px">
                                    <option value="0"></option>
                                    <option value="1">已发放</option>
                                    <option value="2">未发放</option>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">优惠金额&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" class="cfyouhui">
                                <input type="hidden" name="cfyouhui" class="cfyouhui">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">合计共扣&nbsp;:&nbsp;</span>
                                <input type="text" id="cfhjgk" name="cfhjgk">
                                <span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">应退金额&nbsp;:&nbsp;</span>
                                <shiro:hasPermission name="/ytcash">
                                    <input type="text" id="cfyt"  name="cfyt">
                                </shiro:hasPermission>
                                <shiro:lacksPermission name="/ytcash">
                                <input type="text" id="cfyt" readonly="readonly" name="cfyt">
                                </shiro:lacksPermission>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">退学原因&nbsp;:&nbsp;</span>
                                <input type="text" name="fdescription">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">欠费金额&nbsp;:&nbsp;</span>
                                <input type="text" disabled="disabled" class="cfqianfei">
                                <input type="hidden" name="cfqianfei" class="cfqianfei">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">约排考系统&nbsp;:&nbsp;</span>
                                <select name="cfypkxt" style="width: 165px;">
                                    <option value="0"></option>
                                    <option value="1">已录</option>
                                    <option value="2">未录</option>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">规费&nbsp;:&nbsp;</span>
                                <input type="text" id="cfgf" name="cfgf">
                                <span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">培训费&nbsp;:&nbsp;</span>
                                <input type="text" id="cfpxf" name="cfpxf">
                                <span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">刷卡金额&nbsp;:&nbsp;</span>
                                <input type="text" id="cfshuaka" name="cfshuaka">
                                <span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
                            </div>
                        </div>
                        <div class="div_zilei" style="width: 44%;">
                            <div style="width: 200px;text-align: left;float: left;color: #444444;font-size: 14px;"></div>
                            <div style="text-align: right;">
                                <shiro:hasPermission name="/addFinanceExitClazz">
                                    <img src="<%=path%>/image/insert2323.jpg" class="addTable">
                                    <span style="padding-right: 20px; color: #337ab7;font-weight: 700;font-size: 14px"
                                          class="addTable">添加</span>
                                </shiro:hasPermission>
                                <shiro:hasPermission name="/delFinanceExitClazz">
                                <img src="<%=path%>/image/delete212.png" class="deleteTable">
                                <span class="deleteTable" style="color: #337ab7;font-weight: 700;font-size: 14px"
                                      class="deleteTable">删除</span>
                                </shiro:hasPermission>
                                <span style="margin-left: 20px; cursor:pointer;color: #337ab7;font-weight: 700;font-size: 14px"
                                      class="printTable" onclick="print_func()">打印</span>
                            </div>
                        </div>
                        <div style="overflow:auto;height: 240px;width: 50%;padding-left: 20px">
                            <table width="100%" align="center" id="table1"
                                   style="min-height:50px;overflow:hidden;border-spacing:0;float: left;">
                                <tr class="tr">
                                    <td width="20px"></td>
                                    <td width="200px" align="center">扣款项目</td>
                                    <td width="200px" align="center">金额</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="div_tj" style="padding-top: 0px;height: 100px;width: 80%; margin-top: 0px; margin-left: 50px;">
                        <input type="hidden" name="state" class="state" value="">
                        <div style="float: left">
                            <input onclick="return  check(3)" class="input_submit bc" value="" type="submit" style="margin-top: 0px; margin-right: 30px">
                        </div>
                            <%--<div style="float: left">
                                <input onclick="return  check(4)" class="input_submit" value="保存并提交" type="submit">
                            </div>--%>
                            <%--<shiro:hasPermission name="/checkExitClazzBillState">
                            <div style="float: left">
                                    <input onclick="agreeCommon()" class="input_submit" value="审 核" type="button">
                            </div>
                            </shiro:hasPermission>--%>
                        <div style="float: left">
                            <input type="button" class="input_submit fh" value="" onclick="back()" style="margin-top: 0px;"/>
                        </div>
                    </div>
                </form>
            </c:if>


            <!--  修改 -->
            <c:if test="${flag eq 2 }">

                <form action="<%=path%>/DrivingSys/updateExitClazz" method="post" class="form">
                    <div class="jlxx">
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">驾校&nbsp;:&nbsp;</span>
                                <input type="text" value="${exitClazz.cfficompanyName}" disabled="disabled"
                                       name="cfbirthday">
                                <input type="hidden" id="fid" value="${exitClazz.fid}" name="fid">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">单据编号&nbsp;:&nbsp;</span>
                                <input type="text" id="fnumber" value="${exitClazz.fnumber}" disabled="disabled">
                                <input type="hidden" name="fnumber" value="${exitClazz.fnumber}">
                            </div>
                            <div class="input_hang">
                                <c:if test="${exitClazz.cfbillstate eq 3}">
                                    <span class="gn_name">业务日期&nbsp;:&nbsp;</span>
                                    <input type="text" id="cfbirthday" value="${exitClazz.fbizdate}" name="fbizdate"
                                           onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})">
                                    <img onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})"
                                         src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px">
                                </c:if>
                                <c:if test="${exitClazz.cfbillstate ne 3}">
                                    <span class="gn_name">业务日期&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" type="text" id="cfbirthday" value="${exitClazz.fbizdate}"
                                           name="fbizdate"
                                           onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})">
                                    <img onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})"
                                         src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px">
                                </c:if>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">班级&nbsp;:&nbsp;</span>
                                <input type="text" value="${exitClazz.cfclazz}" disabled="disabled" class="cfclazz">
                                <input type="hidden" value="${exitClazz.cfclazz}" class="cfclazz" name="cfclazz">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">单据状态&nbsp;:&nbsp;</span>
                                <select disabled="disabled" style="width: 165px">
                                    <c:if test="${exitClazz.cfbillstate eq 3}">
                                        <option>保存</option>
                                    </c:if>
                                    <c:if test="${exitClazz.cfbillstate eq 4}">
                                        <option>提交</option>
                                    </c:if>
                                    <c:if test="${exitClazz.cfbillstate eq 5}">
                                        <option>审核</option>
                                    </c:if>
                                </select>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">学员姓名&nbsp;:&nbsp;</span>
                                <c:if test="${exitClazz.cfbillstate eq 3}">
                                    <input type="text" value="${exitClazz.studentName}" class="student"
                                           name="studentName">
                                    <input type="hidden" value="${exitClazz.cfstudentid}" id="student"
                                           name="cfstudentid">
                                </c:if>
                                <c:if test="${exitClazz.cfbillstate ne 3}">
                                    <input type="text" disabled="disabled" value="${exitClazz.studentName}"
                                           class="student" name="studentName">
                                    <input type="hidden" disabled="disabled" value="${exitClazz.cfstudentid}"
                                           id="student" name="cfstudentid">
                                </c:if>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">身份证号码&nbsp;:&nbsp;</span>
                                <input type="text" value="${exitClazz.cfidcardno}" disabled="disabled"
                                       class="cfidcardno">
                                <input type="hidden" value="${exitClazz.cfidcardno}" class="cfidcardno"
                                       name="cfidcardno">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">应收金额&nbsp;:&nbsp;</span>
                                <input type="text" value="${exitClazz.cfyinshou}" disabled="disabled" class="cfyinshou">
                                <input type="hidden" value="${exitClazz.cfyinshou}" class="cfyinshou" name="cfyinshou">
                            </div>
                        </div>
                        <div class="div_input_hang">
                            <div class="input_hang">
                                <span class="gn_name">推荐人&nbsp;:&nbsp;</span>
                                <input type="text" value="${exitClazz.cftjr}" disabled="disabled" class="cftjr">
                                <input type="hidden" value="${exitClazz.cftjr}" class="cftjr" name="cftjr">
                                <input type="hidden" class="deptId" name="deptName" value="${deptName}">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">报名时间&nbsp;:&nbsp;</span>
                                <input type="text" value="${exitClazz.cfbmsj}" disabled="disabled" class="cfbmsj">
                                <input type="hidden" value="${exitClazz.cfbmsj}" name="cfbmsj" class="cfbmsj">
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">规费状态&nbsp;:&nbsp;</span>
                                <c:if test="${exitClazz.cfbillstate eq 3}">
                                    <select name="cfguifei" style="width: 165px">
                                        <c:if test="${exitClazz.cfguifei eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">已付</option>
                                            <option value="2">未付</option>
                                            <option value="3">已抵规费</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfguifei eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">已付</option>
                                            <option value="2">未付</option>
                                            <option value="3">已抵规费</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfguifei eq 2}">
                                            <option value="0"></option>
                                            <option value="1">已付</option>
                                            <option selected="selected" value="2">未付</option>
                                            <option value="3">已抵规费</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfguifei eq 3}">
                                            <option value="0"></option>
                                            <option value="1">已付</option>
                                            <option value="2">未付</option>
                                            <option selected="selected" value="3">已抵规费</option>
                                        </c:if>
                                    </select>
                                </c:if>
                                <c:if test="${exitClazz.cfbillstate ne 3}">
                                    <select disabled="disabled" name="cfguifei" style="width: 165px">
                                        <c:if test="${exitClazz.cfguifei eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">已付</option>
                                            <option value="2">未付</option>
                                            <option value="3">已抵规费</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfguifei eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">已付</option>
                                            <option value="2">未付</option>
                                            <option value="3">已抵规费</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfguifei eq 2}">
                                            <option value="0"></option>
                                            <option value="1">已付</option>
                                            <option selected="selected" value="2">未付</option>
                                            <option value="3">已抵规费</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfguifei eq 3}">
                                            <option value="0"></option>
                                            <option value="1">已付</option>
                                            <option value="2">未付</option>
                                            <option selected="selected" value="3">已抵规费</option>
                                        </c:if>
                                    </select>
                                </c:if>
                            </div>
                            <div class="input_hang">
                                <span class="gn_name">已收金额&nbsp;:&nbsp;</span>
                                <input type="text" class="cfyishou" value="${exitClazz.cfyishou}" disabled="disabled">
                                <input type="hidden" class="cfyishou" value="${exitClazz.cfyishou}" name="cfyishou">
                            </div>
                        </div>

                        <c:if test="${exitClazz.cfbillstate eq 3}">
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">科目一&nbsp;:&nbsp;</span>
                                    <select name="cfkmy" style="width: 165px">
                                        <c:if test="${exitClazz.cfkmy eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 2}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option selected="selected" value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 3}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option selected="selected" value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 4}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option selected="selected" value="4">未到</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">科目二&nbsp;:&nbsp;</span>
                                    <select name="cfkme" style="width: 165px">
                                        <c:if test="${exitClazz.cfkme eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 2}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option selected="selected" value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 3}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option selected="selected" value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 4}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option selected="selected" value="4">未到</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">计时卡&nbsp;:&nbsp;</span>
                                    <select name="cfjsk" style="width: 165px">
                                        <c:if test="${exitClazz.cfjsk eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">已发放</option>
                                            <option value="2">未发放</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfjsk eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">已发放</option>
                                            <option value="2">未发放</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfjsk eq 2}">
                                            <option value="0"></option>
                                            <option value="1">已发放</option>
                                            <option selected="selected" value="2">未发放</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">优惠金额&nbsp;:&nbsp;</span>
                                    <input type="text" value="${exitClazz.cfyouhui}" disabled="disabled"
                                           class="cfyouhui">
                                    <input type="hidden" name="cfyouhui" class="cfyouhui">
                                </div>
                            </div>
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">合计共扣&nbsp;:&nbsp;</span>
                                    <input type="text" id="cfhjgk" value="${exitClazz.cfhjgk}" name="cfhjgk">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">应退金额&nbsp;:&nbsp;</span>
                                    <shiro:hasPermission name="/ytcash">
                                        <input type="text" id="cfyt" value="${exitClazz.cfyt}" name="cfyt">
                                    </shiro:hasPermission>
                                    <shiro:lacksPermission name="/ytcash">
                                        <input type="text" readonly="readonly" id="cfyt" value="${exitClazz.cfyt}" name="cfyt">
                                    </shiro:lacksPermission>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">退学原因&nbsp;:&nbsp;</span>
                                    <input type="text" value="${exitClazz.fdescription}" name="fdescription">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">欠费金额&nbsp;:&nbsp;</span>
                                    <input type="text" value="${exitClazz.cfqianfei}" disabled="disabled"
                                           class="cfqianfei">
                                    <input type="hidden" name="cfqianfei" class="cfqianfei">
                                </div>
                            </div>
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">约排考系统&nbsp;:&nbsp;</span>
                                    <select name="cfypkxt" style="width: 165px;">
                                        <c:if test="${exitClazz.cfypkxt eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">已录</option>
                                            <option value="2">未录</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfypkxt eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">已录</option>
                                            <option value="2">未录</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfypkxt eq 2}">
                                            <option value="0"></option>
                                            <option value="1">已录</option>
                                            <option selected="selected" value="2">未录</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">规费&nbsp;:&nbsp;</span>
                                    <input value="${exitClazz.cfgf}" id="cfgf" type="text" name="cfgf">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">培训费&nbsp;:&nbsp;</span>
                                    <input value="${exitClazz.cfpxf}" id="cfpxf" type="text" name="cfpxf">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">刷卡金额&nbsp;:&nbsp;</span>
                                    <input value="${exitClazz.cfshuaka}" id="cfshuaka" type="text" name="cfshuaka">
                                </div>
                            </div>
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">创建人&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" value="${exitClazz.fcreateName}" type="text">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">创建时间&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" value="${exitClazz.fcreatetime}" type="text">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">审核人&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" value="${exitClazz.fauditorName}" type="text">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name"></span>

                                </div>
                            </div>
                        </c:if>

                        <!-- 已审核  -->
                        <c:if test="${exitClazz.cfbillstate ne 3}">
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">科目一&nbsp;:&nbsp;</span>
                                    <select disabled="disabled" name="cfkmy" style="width: 165px">
                                        <c:if test="${exitClazz.cfkmy eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 2}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option selected="selected" value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 3}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option selected="selected" value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkmy eq 4}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option selected="selected" value="4">未到</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">科目二&nbsp;:&nbsp;</span>
                                    <select disabled="disabled" name="cfkme" style="width: 165px">
                                        <c:if test="${exitClazz.cfkme eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 2}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option selected="selected" value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 3}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option selected="selected" value="3">不及格</option>
                                            <option value="4">未到</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfkme eq 4}">
                                            <option value="0"></option>
                                            <option value="1">及格</option>
                                            <option value="2">未考</option>
                                            <option value="3">不及格</option>
                                            <option selected="selected" value="4">未到</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">计时卡&nbsp;:&nbsp;</span>
                                    <select disabled="disabled" name="cfjsk" style="width: 165px">
                                        <c:if test="${exitClazz.cfjsk eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">已发放</option>
                                            <option value="2">未发放</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfjsk eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">已发放</option>
                                            <option value="2">未发放</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfjsk eq 2}">
                                            <option value="0"></option>
                                            <option value="1">已发放</option>
                                            <option selected="selected" value="2">未发放</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">优惠金额&nbsp;:&nbsp;</span>
                                    <input type="text" value="${exitClazz.cfyouhui}" disabled="disabled"
                                           class="cfyouhui">
                                    <input type="hidden" name="cfyouhui" class="cfyouhui">
                                </div>
                            </div>
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">合计共扣&nbsp;:&nbsp;</span>
                                    <input type="text" readonly="readonly" id="cfhjgk" value="${exitClazz.cfhjgk}"
                                           name="cfhjgk">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">应退金额&nbsp;:&nbsp;</span>
                                    <input type="text" id="cfyt" value="${exitClazz.cfyt}" name="cfyt">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">退学原因&nbsp;:&nbsp;</span>
                                    <input type="text" disabled="disabled" value="${exitClazz.fdescription}"
                                           name="fdescription">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">欠费金额&nbsp;:&nbsp;</span>
                                    <input type="text" value="${exitClazz.cfqianfei}" disabled="disabled"
                                           class="cfqianfei">
                                    <input type="hidden" name="cfqianfei" class="cfqianfei">
                                </div>
                            </div>
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">约排考系统&nbsp;:&nbsp;</span>
                                    <select disabled="disabled" name="cfypkxt" style="width: 165px;">
                                        <c:if test="${exitClazz.cfypkxt eq 0}">
                                            <option selected="selected" value="0"></option>
                                            <option value="1">已录</option>
                                            <option value="2">未录</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfypkxt eq 1}">
                                            <option value="0"></option>
                                            <option selected="selected" value="1">已录</option>
                                            <option value="2">未录</option>
                                        </c:if>
                                        <c:if test="${exitClazz.cfypkxt eq 2}">
                                            <option value="0"></option>
                                            <option value="1">已录</option>
                                            <option selected="selected" value="2">未录</option>
                                        </c:if>
                                    </select>
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">规费&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" id="cfgf" value="${exitClazz.cfgf}" type="text"
                                           name="cfgf">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">培训费&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" id="cfpxf" value="${exitClazz.cfpxf}" type="text"
                                           name="cfpxf">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">刷卡金额&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" id="cfshuaka" value="${exitClazz.cfshuaka}" type="text"
                                           name="cfshuaka">
                                </div>
                            </div>
                            <div class="div_input_hang">
                                <div class="input_hang">
                                    <span class="gn_name">创建人&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" value="${exitClazz.fhandlerName}" type="text">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">创建时间&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" value="${exitClazz.fcreatetime}" type="text">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name">审核人&nbsp;:&nbsp;</span>
                                    <input disabled="disabled" value="${exitClazz.fauditorName}" type="text">
                                </div>
                                <div class="input_hang">
                                    <span class="gn_name"></span>

                                </div>
                            </div>
                        </c:if>


                        <c:if test="${exitClazz.cfbillstate eq 3}">
                            <div class="div_zilei" style="width: 44%;">
                                <div style="width: 200px;text-align: left;float: left;color: #444444;font-size: 14px;"></div>
                                <div style="text-align: right;">
                                    <shiro:hasPermission name="/addFinanceExitClazz">
                                        <img src="<%=path%>/image/insert2323.jpg" class="addTable">
                                        <span style="padding-right: 20px;color: #337ab7;font-weight: 700;font-size: 14px"
                                              class="addTable">添加</span>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="/delFinanceExitClazz">
                                        <img src="<%=path%>/image/delete212.png" class="deleteTable">
                                        <span class="deleteTable" style="color: #337ab7;font-weight: 700; font-size: 14px"
                                              class="deleteTable">删除</span>
                                    </shiro:hasPermission>
                                    <span style="margin-left: 20px; cursor:pointer; color: #a9bbe0;font-size: 14px"
                                          class="printTable" onclick="print_func()">打印</span>
                                </div>
                            </div>
                            <div style="overflow:auto;height: 240px;width: 50%;padding-left: 20px">
                                <table width="100%" align="center" id="table1"
                                       style="float: left;min-height:50px;overflow:hidden;border-spacing:0;float: left;">
                                    <tr class="tr">
                                        <td width="20px"></td>
                                        <td width="200px" align="center">扣款项目</td>
                                        <td width="200px" align="center">金额</td>
                                    </tr>
                                    <c:forEach items="${exitClazzEntries}" var="exitClazzEntry" varStatus="s">

                                        <tr align='left' class='tr_td'>
                                            <td style='width:20px'><input type='checkbox' name="item" class='fseq'></td>
                                            <td style="padding-left: 15px;">
                                                <input type='text' style='width:200px;text-align:center'
                                                       readonly="readonly" value="${exitClazzEntry.cfkkxmName}"
                                                       id='fseq'>
                                                <input type='hidden' value="${exitClazzEntry.cfkkxmid}" name='cfkkxmid'
                                                       id='fseqId'>
                                            </td>
                                            <td>
                                                <input type='text' value="${exitClazzEntry.cfamount}"
                                                       onblur='checkMoney(this)' style='width:200px;text-align: center'
                                                       name='cfamount1' class='fseq1'>
                                            </td>
                                        </tr>
                                    </c:forEach>
                                </table>
                            </div>
                        </c:if>

                        <c:if test="${exitClazz.cfbillstate ne 3}">
                            <div class="div_zilei" style="width: 44%;">
                                <div style="width: 200px;text-align: left;float: left;color: #444444;font-size: 14px;"></div>
                                <div style="text-align: right;">
                                    <shiro:hasPermission name="/addFinanceExitClazz">
                                        <img src="<%=path%>/image/insert2323.jpg" class="addTable">
                                        <span style="padding-right: 20px;color: #337ab7;font-weight: 700;font-size: 14px"
                                              class="addTable">添加</span>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="/delFinanceExitClazz">
                                        <img src="<%=path%>/image/delete212.png" class="deleteTable">
                                        <span class="deleteTable" style="color: #337ab7;font-weight: 700;font-size: 14px"
                                              class="deleteTable">删除</span>
                                    </shiro:hasPermission>
                                    <span style="margin-left: 20px; cursor:pointer; color: #337ab7;font-weight: 700;font-size: 14px"
                                          class="printTable" onclick="print_func()">打印</span>
                                </div>
                            </div>
                            <div style="overflow:auto;height: 240px;width: 50%;padding-left: 20px">
                                <table width="100%" align="center" id="table1"
                                       style="min-height:50px;overflow:hidden;border-spacing:0;float: left;">
                                    <tr class="tr">
                                        <td width="20px"></td>
                                        <td width="200px" align="center">扣款项目</td>
                                        <td width="200px" align="center">金额</td>
                                    </tr>
                                    <c:forEach items="${exitClazzEntries}" var="exitClazzEntry" varStatus="s">
                                        <c:if test="${exitClazz.cfbillstate eq 5}">
                                            <tr align='left' class='tr_td'>
                                                <td style='width:20px;'><%--<input  type='text' name='fseq'   readonly="readonly">--%></td>
                                                <td style="padding-left: 15px">
                                                    <input type='text' readonly="readonly"
                                                           style='width:200px;text-align: center'
                                                           value="${exitClazzEntry.cfkkxmName}" id='fseq' class='fseq1'>
                                                    <input type='hidden' value="${exitClazzEntry.cfkkxmid}"
                                                           name='cfkkxmid' id='fseqId'>
                                                </td>
                                                <td>
                                                    <input type='text' readonly="readonly" onblur='checkMoney(this)'
                                                           value="${exitClazzEntry.cfamount}"
                                                           style='width:200px;text-align: center' name='cfamount1'
                                                           class='fseq1'>
                                                </td>
                                            </tr>
                                        </c:if>
                                        <c:if test="${exitClazz.cfbillstate ne 5}">
                                            <tr align='left' class='tr_td'>
                                                <td style='width:20px'><input type='checkbox' name="item" class='fseq'>
                                                </td>
                                                <td style="padding-left: 15px;">
                                                    <input type='text' style='width:200px;text-align:center'
                                                           readonly="readonly" value="${exitClazzEntry.cfkkxmName}"
                                                           id='fseq'>
                                                    <input type='hidden' value="${exitClazzEntry.cfkkxmid}"
                                                           name='cfkkxmid' id='fseqId'>
                                                </td>
                                                <td>
                                                    <input type='text' value="${exitClazzEntry.cfamount}"
                                                           onblur='checkMoney(this)'
                                                           style='width:200px;text-align: center' name='cfamount1'
                                                           class='fseq1'>
                                                </td>
                                            </tr>
                                        </c:if>
                                    </c:forEach>

                                </table>
                            </div>
                        </c:if>
                    </div>

                    <div class="div_tj" style="padding-top: 0px;width: 80%">
                        <c:if test="${exitClazz.cfbillstate eq 3}">
                            <shiro:hasPermission name="/selExitClazzById">
                                <div>
                                    <input type="submit" onclick="return check(3)" class="input_submit bc" value="">
                                </div>
                            </shiro:hasPermission>
                            <shiro:hasPermission name="/submitFlowOnUpdate">
                                <div>
                                    <input type="submit" onclick="return submitFlow()" class="input_submit tj" value="">
                                </div>
                            </shiro:hasPermission>
                        </c:if>
                        <c:if test="${exitClazz.cfbillstate ne 3}">
                            <shiro:hasPermission name="/selExitClazzById">
                                <div>
                                    <input type="submit" onclick="return check(3)" class="input_submit bc" value="">
                                </div>
                            </shiro:hasPermission>
                            <c:if test="${seeFlag eq 'power'}">
                                <c:if test="${exitClazz.cfbillstate eq 4}">
                                    <shiro:hasPermission name="/checkExitClazzBillState">
                                        <div>
                                            <input type="button" onclick="agreeCommon()" class="input_submit sh"
                                                   value=""/>
                                        </div>
                                    </shiro:hasPermission>
                                </c:if>
                            </c:if>

                            <shiro:hasPermission name="/uncheckExitClazzBillState">
                                <div>
                                    <input type="button" onclick="unagreeCommon()" class="input_submit fsh" value=""/>
                                </div>
                            </shiro:hasPermission>
                        </c:if>

                        <div>
                            <input type="button" class="input_submit cklc" value=""
                                   onclick="lookActivitiImg('${ActivitiKey}',$('#fnumber').val())">
                        </div>
                        <div style="margin-left: 60px">
                            <input type="button" class="input_submit fh"
                                   onclick="back()" <%--onclick="history.back(-1)"--%>/>
                        </div>
                        <input id="submitFlag" type="hidden" value="${submitFlag}">
                    </div>
                </form>
            </c:if>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="<%=path%>/common/print/jQuery.print.min.js"></script>
<%@ include file="/WEB-INF/JSP/ajax.jsp" %>
<script type="text/javascript">

    $(document).ready(function () {
        var type = "${type}";
        if (type == '0' || type == '' || type == null) {

        } else {
            editAlert();
        }
        $("#amountInWords").html(Arabia_to_Chinese('${exitClazz.cfyt}'));
    })

    function check(state) {
        if($('#cfshuaka').val()==""){
            $('#cfshuaka').val(0);
        }
        if (state == 3) {
            $('.state').val(3)
        } else {
            $('.state').val(4)
        }
        if ($('.student').val() == '') {
            alert('请您选择学员')
            return false
        }

        if ($('#cfbirthday').val() == '') {
            alert('请您选择业务日期')
            return false
        }
        var parren = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
        /*if(!parren.test($('#fseq').val())){
            alert('请您输入金额')
            return false
        }*/
        $('.fseq1').each(function (event) {
            if ($(this).val() == '') {
                $(this).val(0)
            }
        })

        /*if($('#cfhjgk').val() == ''){
            alert('请您输入合计共扣')
            return false
        }else if(!parren.test($('#cfhjgk').val())){
            alert('合计共扣,请您输入金额')
            return false
        }else{

        }*/
        /*            if($('#cfyt').val() == ''){
                        alert('请您输入应退金额')
                        return false
                    } else if(!parren.test($('#cfyt').val())){
                        alert('应退金额,请您输入金额')
                        return false
                    }else{

                    }*/
        if ($('#cfgf').val() == '') {
            alert('请您输入规费')
            return false
        } else if (!parren.test($('#cfgf').val())) {
            alert('规费,请您输入金额')
            return false
        } else {

        }
        if ($('#cfpxf').val() == '') {
            alert('请您输入培训费')
            return false
        } else if (!parren.test($('#cfpxf').val())) {
            alert('培训费,请您输入金额')
            return false
        } else {

        }
        if (!parren.test($('#cfshuaka').val())) {
            alert('刷卡金额,请您输入金额')
            return false
        } else {

        }

        //防止表单重复提交
        $('form').submit(function () {
            if (typeof jQuery.data(this, "disabledOnSubmit") == 'undefined') {
                jQuery.data(this, "disabledOnSubmit", {submited: true});
                $('input[type=submit], input[type=button]', this).each(function () {
                    $(this).attr("disabled", "disabled");
                });
                return true;
            }
            else {
                return false;
            }
        })
    }

    function submitFlow() {
        $.messager.confirm('提示', '是否提交该单据?', function (r) {
            if (r) {
                $.ajax({
                    url: '<%=path%>/DrivingSys/submitFlowOnUpdate',
                    type: "post",
                    data: {
                        'fid': $('#fid').val(),
                        'fnumber': $('#fnumber').val(),
                        'submitFlag': $('#submitFlag').val(),
                        'deptName': $('.deptId').val()
                    },
                    dataType: "json",
                    success: function (json) {
                        showAlert('提交成功', '/selExitClazz/look.action')
                        /*alert('提交成功')
                        location = '






                        <%=path%>/DrivingSys/selExitClazz/look.action';*/
                    },
                    error: function () {
                        alert('错误');
                    }
                })
            }
        })
        return false
    }

    $('#auditsubmit').click(function () {
        $('.auditcheck').each(function () {
            if ($(this).is(':checked')) {
                $.ajax({
                    url: '<%=path%>/DrivingSys/checkExitClazzBillState',
                    type: "post",
                    data: {
                        'fid': $('#fid').val(),
                        'fnumber': $('#fnumber').val(),
                        'state': 5,
                        'agreed': $(this).val(),
                        'auditcomment': $('#auditcomment').val()
                    },
                    dataType: "json",
                    success: function (res) {
                        showAlert('审核成功', '/selExitClazz/look.action')
                        /* alert('审核成功')
                         location = '






                        <%=path%>/DrivingSys/selExitClazz/look.action';*/
                    },
                    error: function () {
                        alert('错误');
                    }
                })
            } else {

            }
        })
    })

    /*反审核*/
    $('#againstAuditsubmit').click(function () {
        $.ajax({
            url: '<%=path%>/DrivingSys/checkExitClazzBillState',
            type: "post",
            data: {
                'fid': $('#fid').val(),
                'fnumber': $('#fnumber').val(),
                'state': 3,
                'agreed': 0,
                'auditcomment': $('#againstAuditcomment').val(),
                'submitFlag': $('#submitFlag').val()
            },
            dataType: "json",
            success: function (res) {
                showAlert('反审核成功', '/selExitClazz/look.action')
                /* alert(res.msg)
                 location = '






                <%=path%>/DrivingSys/selExitClazz/look.action';*/
            },
            error: function () {
                alert('错误');
            }
        })
    })
    /*
             $(".addTable").click(function(){

            }) */

    /*;*/

    $('.addTable').live('click', function () {
        $.ajax({
            url: '<%=path%>/DrivingSys/selectWithHoldItem',
            type: "post",
            data: {},
            dataType: "json",
            success: function (json) {
                var str = ''
                for (var i = 0; i < json.length; i++) {
                    str += '<tr class="fir" style="margin-top: 45px" ><td ><input style="width: 15px;height: 15px" '
                    str += 'type="checkbox" name="withItem"  value="' + json[i].fid + '"></td>'
                    str += '<td>' + json[i].fnameL2 + '</td><td>' + json[i].fnumber + '</td>'
                    if (json[i].fsimplename == null) {
                        str += '<td></td>'
                    } else {
                        str += '<td>' + json[i].fsimplename + '</td>'
                    }
                    if (json[i].fdescriptionL2 == null) {
                        str += '<td></td>'
                    } else {
                        str += '<td>' + json[i].fdescriptionL2 + '</td>'
                    }
                    str += '<td>' + json[i].fcreatetime + '</td><td>' + json[i].createName + '</td>'
                    str += '<td>' + json[i].flastupdatetime + '</td><td>' + json[i].updateName + '</td>'
                    str += '<td>' + json[i].cfficompanyName + '</td></tr>'
                }
                $(".head1 tr:not(':first')").remove()
                $('.head1').append(str)
            },
            error: function () {
                alert('Error');
            }
        });
        $('#modal-overlay').css('visibility', 'visible')
        $('.modal-data1').css('visibility', 'visible')
        $('input:checkbox').removeAttr('checked');
    })


    $('.subtn1').live('click', function () {
        var spCodesTemp = "";
        $('input:checkbox[name=withItem]:checked').each(function (i) {
            if (0 == i) {
                spCodesTemp = $(this).val();
            } else {
                spCodesTemp += ("," + $(this).val());
            }
        });
        if (spCodesTemp == "null" || spCodesTemp == "") {
            alert("请选择项目")
        } else {
            var tr_len = $("#table1 tr").length;//表格长
            $.ajax({
                url: '<%=path%>/DrivingSys/selectWithHoldItemByIds',
                type: "post",
                data: {"fid": spCodesTemp},
                dataType: "json",
                success: function (json) {
                    var str = ''
                    for (var i = 0; i < json.length; i++) {
                        str += "<tr align='left' class='tr_td'><td style='width:20px'  ><input  type='checkbox' name='item'  ></td>";
                        str += "<td style='padding-left: 15px'><input type='text'readonly='readonly'  style='width:200px;text-align: center;'  value=" + json[i].fnameL2 + "><input type='hidden' name='cfkkxmid' value=" + json[i].fid + " ></td>"
                        str += "<td><input type='text' style='width:200px;text-align: center' value='0' id='fseq' onblur='checkMoney(this)' name='cfamount1' class='fseq1'></td></tr>";
                    }
                    $("#table1").append(str)
                    $('#modal-overlay').css('visibility', 'hidden')
                    $('.modal-data1').css('visibility', 'hidden')
                },
                error: function () {
                    alert('Error');
                }
            });
        }

    })


    /*	$(".input_submit.gb").live('click',function(){
            var fid = $('#fid').val()
            fid=fid.replace(/\+/g,"%2B");
            location.href="<%=path%>/DrivingSys/checkExitClazzBillState?fid="+fid
	})*/

    $('.subtn').click(function () {
        var spCodesTemp = "";
        $('input:checkbox[name=student]:checked').each(function (i) {
            if (0 == i) {
                spCodesTemp = $(this).val();
            } else {
                spCodesTemp += ("," + $(this).val());
            }
        });
        spCodesTemp = spCodesTemp.split(",")
        if (spCodesTemp == "null" || spCodesTemp == "") {
            alert("请选择学员")
        } else {
            $.ajax({
                url: '<%=path%>/DrivingSys/selStudentById',
                type: "post",
                data: {'fid': spCodesTemp[0]},
                dataType: "json",
                success: function (json) {
                    $('.cfyouhui').val(json.cffavorable)
                    $('.cfqianfei').val(json.cfarrearage)
                    $('.cfyishou').val(json.cfreceived)
                    $('.cftjr').val(json.cftjrName)
                    $('.cfyinshou').val(json.cfamount)
                    $('.cfcurrentclass').val(json.cfclazzName)
                    $('.cfidcardno').val(json.cfidcardno)
                    $('.cfbmsj').val(json.cfrxsj)
                    $('.cfclazz').val(json.cfclazzName)
                    $('.student').val(json.fnameL2)
                    $('#student').val(json.fid)
                    $('.deptId').val(json.cfdepartment)
                    if (json.cftimecard == 1) {
                        $('#cfjsk').find("option[value='1']").attr("selected", true);
                    } else if (json.cftimecard == 0) {
                        $('#cfjsk').find("option[value='2']").attr("selected", true);
                    } else {

                    }
                    if (json.cfkmyherq != null) {
                        $('#cfkmy').find("option[value='1']").attr("selected", true);
                    } else if (json.cfkmyherq == null && json.cfkmybjgsj != null) {
                        $('#cfkmy').find("option[value='3']").attr("selected", true);
                    } else {
                        $('#cfkmy').find("option[value='2']").attr("selected", true);
                    }

                    if (json.cfkmehgrq != null) {
                        $('#cfkme').find("option[value='1']").attr("selected", true);
                    } else if (json.cfkmehgrq == null && json.cfkmebjgsj != null) {
                        $('#cfkme').find("option[value='3']").attr("selected", true);
                    } else {
                        $('#cfkme').find("option[value='2']").attr("selected", true);
                    }

                    $.ajax({
                        url: '<%=path%>/DrivingSys/selTrainByFnumber',
                        type: "post",
                        data: {'fnumber': json.fid},
                        dataType: "json",
                        async: true,
                        success: function (json) {
                            $("#cfgf").val(json.cfguifei)
                            $("#cfpxf").val(json.cfpxf)
                            if (json.cfcard == "" || json.cfcard == null)
                                $("#cfshuaka").val(0)
                            else
                                $("#cfshuaka").val(json.cfcard)
                        },
                        error: function () {
                            alert('Error');
                        }
                    })
                    $('#modal-overlay').css('visibility', 'hidden')
                    $('.modal-data').css('visibility', 'hidden')
                },
                error: function () {
                    alert('Error');
                }
            });
        }
    })

    $('.xysj').live('click', function () {
        $(".xysj input[type='checkbox']").attr("checked", false);
        $(this).find("input[type='checkbox']").attr("checked", true);
    })

    $('.xysj').live('dblclick', function () {
        $(this).find("input:checkbox[name=student]").attr("checked", ":checked")
        var spCodesTemp = "";
        $('input:checkbox[name=student]:checked').each(function (i) {
            if (0 == i) {
                spCodesTemp = $(this).val();
            } else {
                spCodesTemp += ("," + $(this).val());
            }
        });
        spCodesTemp = spCodesTemp.split(",")
        $.ajax({
            url: '<%=path%>/DrivingSys/selStudentById',
            type: "post",
            data: {'fid': spCodesTemp[0]},
            dataType: "json",
            success: function (json) {
                $('.cfyouhui').val(json.cffavorable)
                $('.cfqianfei').val(json.cfarrearage)
                $('.cfyishou').val(json.cfreceived)
                $('.cftjr').val(json.cftjrName)
                $('.cfyinshou').val(json.cfamount)
                $('.cfcurrentclass').val(json.cfclazzName)
                $('.cfidcardno').val(json.cfidcardno)
                $('.cfbmsj').val(json.cfrxsj)
                $('.cfclazz').val(json.cfclazzName)
                $('.student').val(json.fnameL2)
                $('#student').val(json.fid)
                $('.deptId').val(json.cfdepartment)
                if (json.cftimecard == 1) {
                    $('#cfjsk').find("option[value='1']").attr("selected", true);
                } else if (json.cftimecard == 0) {
                    $('#cfjsk').find("option[value='2']").attr("selected", true);
                } else {

                }
                if (json.cfkmyherq != null) {
                    $('#cfkmy').find("option[value='1']").attr("selected", true);
                } else if (json.cfkmyherq == null && json.cfkmybjgsj != null) {
                    $('#cfkmy').find("option[value='3']").attr("selected", true);
                } else {
                    $('#cfkmy').find("option[value='2']").attr("selected", true);
                }

                if (json.cfkmehgrq != null) {
                    $('#cfkme').find("option[value='1']").attr("selected", true);
                } else if (json.cfkmehgrq == null && json.cfkmebjgsj != null) {
                    $('#cfkme').find("option[value='3']").attr("selected", true);
                } else {
                    $('#cfkme').find("option[value='2']").attr("selected", true);
                }
                $.ajax({
                    url: '<%=path%>/DrivingSys/selTrainByFnumber',
                    type: "post",
                    data: {'fnumber': json.fid},
                    dataType: "json",
                    async: true,
                    success: function (json) {
                        $("#cfgf").val(json.cfguifei)
                        $("#cfpxf").val(json.cfpxf)
                        if (json.cfcard == "" || json.cfcard == null)
                            $("#cfshuaka").val(0)
                        else
                            $("#cfshuaka").val(json.cfcard)
                    },
                    error: function () {
                        alert('Error');
                    }
                })
                $('#modal-overlay').css('visibility', 'hidden')
                $('.modal-data').css('visibility', 'hidden')
            },
            error: function () {
                alert('Error');
            }
        });
    })

    $('.findBtn').live('click', function () {
        var myname = $('.modal-data1').find(".name1").val()
        $.ajax({
            url: '<%=path%>/DrivingSys/selectWithHoldItemByName',
            type: "post",
            data: {"name": myname},
            dataType: "json",
            success: function (json) {
                var str = ''
                for (var i = 0; i < json.length; i++) {
                    str += '<tr class="fir" style="margin-top: 45px" ><td><input style="width: 15px;height: 15px" '
                    str += 'type="checkbox" name="withItem"  value="' + json[i].fid + '"></td>'
                    str += '<td>' + json[i].fnameL2 + '</td><td>' + json[i].fnumber + '</td>'
                    if (json[i].fsimplename == null) {
                        str += '<td></td>'
                    } else {
                        str += '<td></td>'
                    }
                    if (json[i].fdescriptionL2 == null) {
                        str += '<td>' + json[i].fdescriptionL2 + '</td>'
                    } else {
                        str += '<td>' + json[i].fdescriptionL2 + '</td>'
                    }
                    str += '<td>' + json[i].fcreatetime + '</td><td>' + json[i].createName + '</td>'
                    str += '<td>' + json[i].flastupdatetime + '</td><td>' + json[i].updateName + '</td>'
                    str += '<td>' + json[i].cfficompanyName + '</td></tr>'
                }
                $(".head1 tr:not(':first')").remove()
                $('.head1').append(str)
            },
            error: function () {
                alert('Error');
            }
        });

    })


    /*
        $(function(){
            $(':checkbox[type="checkbox"]').each(function(){
                $(this).click(function(){
                    if($(this).attr('checked')){
                        $(':checkbox[type="checkbox"]').removeAttr('checked');
                        $(this).attr('checked','checked');
                    }
                });
            });
        });*/


    //删除一行
    $(".deleteTable").click(function () {
        var tr_len = $("#table1 tr").length;
        if (tr_len == 1) {

        } else {
            $('input:checkbox[name=item]:checked').each(function (i) {
                $(this).parent().parent().remove();
                if ($("#cfhjgk").val() == "" || $("#cfhjgk").val() == "0") {

                } else {
                    var cfamout = ($("#cfhjgk").val() - 0) - ($(this).parent().parent().find(".fseq1").val() - 0)
                    $("#cfhjgk").val(cfamout)
                }
            })
        }
        if ($('#table1 tr').length < 2) {
            $("#cfhjgk").val("")
        }
    })


    //返回
    function back() {
        parent.closeSelectCard()

        //location = 'selExitClazz/look.action';
    }


    //取消
    $('.btn').click(function () {
        $('#modal-overlay').css('visibility', 'hidden')
        //$('.modal-data').css('visibility','hidden')
        $('.modal-data1').css('visibility', 'hidden')
        $('.modal-data2').css('visibility', 'hidden')
        $('.modal-data').css('visibility', 'hidden')
        $('.modal-data7').css('visibility', 'hidden')
        $('input:checkbox').removeAttr('checked');
    })


    $('.student').click(function () {
        $('#modal-overlay').css('visibility', 'visible')
        $('.modal-data').css('visibility', 'visible')
        $('input:checkbox').removeAttr('checked');
        $('.page').show()
    })

    $('.fir').live('dblclick', function () {
        $(this).find("input:checkbox[name=withItem]").attr("checked", ":checked")
        var spCodesTemp = "";
        $('input:checkbox[name=withItem]:checked').each(function (i) {
            if (0 == i) {
                spCodesTemp = $(this).val();
            } else {
                spCodesTemp += ("," + $(this).val());
            }
        });
        var tr_len = $("#table1 tr").length;//表格长
        $.ajax({
            url: '<%=path%>/DrivingSys/selectWithHoldItemByIds',
            type: "post",
            data: {"fid": spCodesTemp},
            dataType: "json",
            success: function (json) {
                var str = ''
                for (var i = 0; i < json.length; i++) {
                    str += "<tr align='left' class='tr_td'><td style='width:20px'  ><input  type='checkbox' name='item'  ></td>";
                    str += "<td style='padding-left: 15px'><input type='text'readonly='readonly'  style='width:200px;text-align: center;'  value=" + json[i].fnameL2 + "><input type='hidden' name='cfkkxmid' value=" + json[i].fid + " ></td>"
                    str += "<td><input type='text' style='width:200px;text-align: center' value='0' id='fseq' name='cfamount1' onblur='checkMoney(this)' class='fseq1'></td></tr>";
                }
                $("#table1").append(str)
                $('#modal-overlay').css('visibility', 'hidden')
                $('.modal-data1').css('visibility', 'hidden')
            },
            error: function () {
                alert('Error');
            }
        });

    })
    //单击选中复选框
    $(".fir").live('click', function () {
        var check = $(this).find("input[type='checkbox']");
        if (check) {
            var flag = check[0].checked;
            if (flag) {
                check[0].checked = false;
            } else {
                check[0].checked = true;
            }
        }
    });

    //阻止复选框进行冒泡事件
    $(".fir input[type='checkbox']").live('click', function (e) {
        e.stopPropagation();
    });

    //单击选中复选框
    $(".tr_td").live('click', function () {
        var check = $(this).find("input[type='checkbox']");
        if (check) {
            var flag = check[0].checked;
            if (flag) {
                check[0].checked = false;
            } else {
                check[0].checked = true;
            }
        }

    });

    //阻止复选框进行冒泡事件
    $(".tr_td input[type='checkbox']").live('click', function (e) {
        e.stopPropagation();
    });

    function agreeCommon() {
        $('.modal-data9').css('visibility', 'visible')
        $('#modal-overlay').css('visibility', 'visible')
        return false

    }

    function unagreeCommon() {
        $('.modal-data10').css('visibility', 'visible')
        $('#modal-overlay').css('visibility', 'visible')
        return false
    }

    function checkMoney(_this) {
        var $this = $(_this)
        //避免最后一个字符串是.
        $this.val(($this.val().replace(/\.$/g, "")));
        $this.val(($this.val().replace(/\s+/g, "")));
        if ($this.val() == '-') {
            $this.val("")
            $this.focus()
        }
        //判断输入错误
        if (isNaN(Number($this.val()))) {
            $this.val("")
            $this.focus()
        } else {
            if ($('#cfhjgk').val() == "") {
                $('#cfhjgk').val($this.val())
            } else {
                $('#cfhjgk').val(($('#cfhjgk').val() - 0) + ($this.val() - 0))
            }
        }
    }

    function print_func() {

        $('#content_id').css('display', 'block');
        $('#content_id').print({
            //是否读取页面的样式
            globalStyles: true,
            //添加与attrbute media=打印的链接。
            mediaPrint: false,
            //在隐藏的iframe中打印。
            iframe: false,
            //不打印 的内容（选择器）
            noPrintSelector: ".avoid-this",
            //Add this at top
            prepend: "Hello World!!!<br/>",
            //Add this on bottom
            append: "<br/>Buh Bye!",
            //Log to console when printing is done via a deffered callback
            deferred: $.Deferred().done(function () {
                console.log('Printing done', arguments);
            })
        });
        $('#content_id').css('display', 'none');
    }
</script>
</html>